<!DOCTYPE html>
<html lang="bg" id="project">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<title><?php echo $this->translate('Project title'); ?></title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link href="<?php echo LIGHT_ASSETS_URL; ?>/css/default.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
	    <div id="content">
            <table style="width: 100%;">
                <tr>
                    <td>
                        <ul id="menu">
                        <?php if (LIGHT_LANGUAGE_ENABLE) : ?>
                            <li style="float: left;">
                            |
                            <?php foreach (array_keys(Light_Core::getTranslations()) as $lang) : ?>
                            <?php if (Light_Core::$mainController->getRequest()->getParam('lang') == $lang) : ?>
                                <?php echo $lang; ?> |
                            <?php else: ?>
                                <a href="<?php echo $this->url(array('lang' => $lang)); ?>"><?php echo $lang; ?></a> |
                            <?php endif; ?>
                            <?php endforeach; ?>
                            </li>
                        <?php endif; ?>
                	        <li style="float: left;">
                                <a href="<?php echo $this->url(array(), 'default'); ?>"><?php echo $this->translate('Home'); ?></a>
                            </li>
                        <?php if ($this->identity()) : ?>
                            <li style="float: left;">
                                <a href="<?php echo $this->url(array(), 'logout'); ?>"><?php echo $this->translate('Logout'); ?></a>
                            </li>
                            <?php if ($this->isAdmin()) : ?>
                            <li style="float: right; padding: 0 0 0 10px;">
                                <a href="<?php echo $this->url(array(), 'admin'); ?>"><?php echo $this->translate('Admin panel'); ?></a>
                            </li>
                            <?php endif; ?>
                            <li style="float: right; padding: 0;">
                                <?php echo $this->translate('Welcome'); ?>,
                                <a style="font-weight: bold" href="<?php echo $this->url(array(), 'profile'); ?>">
                            <?php if ($this->identity()->firstName) : ?>
                                <?php echo $this->identity()->firstName; ?> <?php echo $this->identity()->middleName; ?> <?php echo $this->identity()->lastName; ?>
                            <?php else : ?>
                                <?php echo $this->identity()->name; ?>
                            <?php endif; ?>
                                </a>
                            </li>
                        <?php else : ?>
                            <li style="float: left;">
                                <a href="<?php echo $this->url(array(), 'login'); ?>"><?php echo $this->translate('Login'); ?></a>
                            </li>
                        <?php endif; ?>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top; width: 100%;">
                        <?php echo $this->flashMessage()->getMessage(); ?>
                        <?php echo $this->content; ?>
                    </td>
                </tr>
            </table>
    	</div>
	</body>
</html>